import httpInstance from "@/utils/http";

//获取轮播图数据的接口方法
export const getBannerAPI = (params = {}) => {
  //默认1 商品2
  const { distributionSite = "1" } = params;
  return httpInstance({
    url: "/home/banner",
    params: {
      distributionSite,
    },
  });
};

//获取品牌好物数据的方法
export const findNewAPI = () => {
  return httpInstance({
    url: "/home/new",
  });
};

//获取人气推荐的方法
export const findHotAPI = () => {
  return httpInstance({
    url: "/home/hot",
  });
};

//获取所有商品模块
export const getGoodsAPI = () => {
  return httpInstance({
    url: "/home/goods",
  });
};
